﻿using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repositorys
{
    public interface ICPCRepositoy
    {
        /// <summary>
        ///公共属性数据显示
        /// </summary>
        /// <param name="cPC"></param>
        /// <returns></returns>
        Task<List<CPC>> CPCselectAsync(int pageIndex, int pageSize);
        /// <summary>
        /// 总页数
        /// </summary>
        /// <returns></returns>
        int SelectCount();
        /// <summary>
        /// 公共属性设置添加
        /// </summary>
        /// <param name="cPC"></param>
        /// <returns></returns>
        Task<int> CPCAddAsync(CPC cPC);
        /// <summary>
        /// 公共属性设置删除
        /// </summary>
        /// <returns></returns>
        Task<int> CPCDeleteAsync(CPC cPC);
        /// <summary>
        /// 多条数据查询，薪酬设置
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<List<CPC>> CPCselectaAsync(int pageIndex, int pageSize, string name);

        int SelectCounta(string name);

        /// <summary>
        /// 薪酬设置
        /// </summary>
        /// <returns></returns>
        Task<int> CPCxinz(CPC  cPC);

        /// <summary>
        /// 按属性种类查询全部属性数据
        /// </summary>
        /// <param name="kind"></param>
        /// <returns></returns>
        Task<List<CPC>> CPCFillAsync(string kind);
    }
}
